import uvicorn
from fastapi import FastAPI

# 引入路由
from controller.task_api import task_api
from controller.system.login_api import login_api

# 创建服务
app = FastAPI()

# 路由挂载
app.include_router(login_api, prefix='/public', tags=['登陆接口', 'public'])
app.include_router(task_api, tags=['task管理', 'task'])

if __name__ == '__main__':
    # 启动服务
    uvicorn.run(app="server:app", host='0.0.0.0', port=8000, workers=5, reload=True)
